This only needs to be run once against your spark service.
In [1]:
import sys.process._
val HOME = sys.env("HOME")
val DESTDIR = s"${HOME}/data/libs/scala-2.10"
s"test -d ${DESTDIR}" #|| s"mkdir -p ${DESTDIR}" !
s"wget -q -c -O ${DESTDIR}/cloudant-spark-v1.6.4-167.jar https://github.com/cloudant-labs/spark-cloudant/releases/download/v1.6.4/cloudant-spark-v1.6.4-167.jar" !
s"ls ${DESTDIR}/" !
After running the above code, restart the kernel
In [ ]: